import QtQuick 2.0
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import Quick.UIComponent.Header 0.1




Page{
    id:root
    title: qsTr("头像")

    property int  headerWidth: 160
    readonly property url path:AppPath.getPath()

    Container{
        id:control
        anchors.fill: parent

        contentItem: Flow{
            anchors.fill: parent
            spacing: 20
            Repeater{
                model: control.children
            }
        }

        Header{
            source:"file:///" + path + "/resource/photo/header/" +"1.jpg"
            diameter:headerWidth
        }

        Header{
            source:"file:///" + path + "/resource/photo/header/" +"1.gif"
            diameter:headerWidth
        }

        Header{
            source:"file:///" + path + "/resource/photo/header/" +"1.png"
            diameter:headerWidth
        }
        Header{
            source:"file:///" + path + "/resource/photo/header/" +"2.jpg"
            diameter:headerWidth
        }
        Header{
            source:"file:///" + path + "/resource/photo/header/" +"3.jpg"
            diameter:headerWidth
        }
    }




}
